 
<%@ page import="comptadub.Membre" %>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <meta name="viewport" content="user-scalable=no, width=device-width" />
        <link rel="stylesheet" type="text/css" href="${resource(dir:'css',file:'main.css')}" media="screen" />
        <link rel="stylesheet" type="text/css" href="${resource(dir:'css',file:'main-mini.css')}" media="screen and (max-width: 480px)" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />        
    </head>
    
    <script type="text/javascript">
        function show(id)
        {
            document.location.href = "${createLink(uri: '/')}" + "${params.controller}" + "/show/" + id;
        }
    </script>
    
    <body>
        <div id="global">
            <div id="entete">
                <div id="logo">
                    <img src="${resource(dir:'images',file:'logo.png')}" alt="ResaDub" border="0" />
                </div>

                <g:if test="${session?.idMembre}">
					<div id="info">
					    <g:link controller="login" action="show">
					      ${Membre.get(session?.idMembre)?.nom}
					  </g:link>
					  <br>Solde courant : <g:formatNumber number="${Membre.get(session?.idMembre)?.solde}" format="#0.00 &euro';'" />
					</div>
						
                	<g:if test="${session?.typeMembre == 'admin'}">
                        <div id="param">
                            <g:link controller="parametre" action="list">
                                <img src="${createLinkTo(dir:'images/skin',file:'cog.png')}" alt="Paramétrage" />
                            </g:link>
                        </div>
                    </g:if>
                </g:if>
            </div>

            <div id="centre">
                <g:layoutBody />
            </div>

            <div id="bas">
                Réalisation Dampeelou &copy;
            </div>
        </div>
    </body>
</html>